<?php

namespace app\admin\model;

class SkuCategoryValueModel extends BaseModel
{
    protected $name='sku_category_value';
    protected $json=['object'];
    protected $jsonAssoc= true;
    public function creator(){
        return $this->belongsTo(AdminModel::class,'creator_id');
    }
    public function updater(){
        return $this->belongsTo(AdminModel::class,'updater_id');
    }
    public static function onBeforeDelete($info)
    {
        if($info['readonly'])
            return false;
    }
    public static function onBeforeUpdate($info)
    {
        if($info['readonly'])
            return false;
    }
}
